Wrapping single modal check in 1 spot

parent aef742bd
...@@ -82,13 +82,15 @@ ...@@ -82,13 +82,15 @@
v-if="singleModal"> v-if="singleModal">
{{ trans('media.insert') }} {{ trans('media.insert') }}
</a> </a>
<a class="btn btn-default btn-flat" @click.prevent="loadEditForm(scope)" <div v-if="! singleModal">
v-if="! singleModal && ! scope.row.is_folder"><i class="fa fa-pencil"></i></a> <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" <a @click.prevent="showEditFolder(scope.row)" class="btn btn-default btn-flat"
v-if="! singleModal && scope.row.is_folder"> v-if="scope.row.is_folder">
<i class="fa fa-pencil"></i> <i class="fa fa-pencil"></i>
</a> </a>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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