Commit edcee597 authored by Clement Ho's avatar Clement Ho

[skip ci] remove :not in favor of v-if

parent d157918f
......@@ -146,7 +146,7 @@ import Cookies from 'js-cookie';
Sidebar.prototype.openDropdown = function(blockOrName) {
var $block;
$block = _.isString(blockOrName) ? this.getBlock(blockOrName) : blockOrName;
$block.find('.edit-link:not(.hidden)').trigger('click');
$block.find('.edit-link').trigger('click');
if (!this.isOpen()) {
this.setCollapseAfterUpdate($block);
return this.toggleSidebar('open');
......
......@@ -18,8 +18,8 @@ export default {
<template v-else>
Assignee
</template>
<i aria-hidden="true" class="fa fa-spinner fa-spin block-loading" :class="{ hidden: !loading }"></i>
<a class="edit-link pull-right" :class="{ hidden: !editable }" href="#">Edit</a>
<i v-if="loading" aria-hidden="true" class="fa fa-spinner fa-spin block-loading"></i>
<a v-if="editable" class="edit-link pull-right" href="#">Edit</a>
</div>
`,
};
......@@ -229,4 +229,4 @@
new IssuableContext('#{escape_javascript(current_user.to_json(only: [:username, :id, :name]))}');
gl.Subscription.bindAll('.subscription');
new gl.DueDateSelectors();
window.sidebar = new Sidebar();
\ No newline at end of file
window.sidebar = new Sidebar();
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