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