Wrapping single modal check in 1 spot

parent aef742bd
......@@ -82,13 +82,15 @@
v-if="singleModal">
{{ trans('media.insert') }}
</a>
<a class="btn btn-default btn-flat" @click.prevent="loadEditForm(scope)"
v-if="! singleModal && ! scope.row.is_folder"><i class="fa fa-pencil"></i></a>
<div v-if="! singleModal">
<a class="btn btn-default btn-flat" @click.prevent="loadEditForm(scope)"
v-if="! scope.row.is_folder"><i class="fa fa-pencil"></i></a>
<a @click.prevent="showEditFolder(scope.row)" class="btn btn-default btn-flat"
v-if="! singleModal && scope.row.is_folder">
<i class="fa fa-pencil"></i>
</a>
<a @click.prevent="showEditFolder(scope.row)" class="btn btn-default btn-flat"
v-if="scope.row.is_folder">
<i class="fa fa-pencil"></i>
</a>
</div>
</template>
</el-table-column>
</el-table>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment