equal
deleted
inserted
replaced
1 <template> |
1 <template> |
2 <div> |
2 <div> |
3 <button v-if="annotation" @click="readonly = !readonly" |
3 <button v-if="annotation && isAuthenticated" @click="readonly = !readonly" |
4 class="btn btn-xs pull-right" |
4 class="btn btn-xs pull-right" |
5 v-bind:class="{ 'btn-primary': readonly, 'btn-warning': !readonly }"> |
5 v-bind:class="{ 'btn-primary': readonly, 'btn-warning': !readonly }"> |
6 <i class="fa fa-edit" v-if="readonly"></i> |
6 <i class="fa fa-edit" v-if="readonly"></i> |
7 <span v-if="readonly">Modifier</span> |
7 <span v-if="readonly">Modifier</span> |
8 <i class="fa fa-ban" v-if="!readonly"></i> |
8 <i class="fa fa-ban" v-if="!readonly"></i> |
60 type: Object, |
60 type: Object, |
61 default: function () { |
61 default: function () { |
62 return null; |
62 return null; |
63 } |
63 } |
64 }, |
64 }, |
|
65 isAuthenticated: { |
|
66 type: Boolean, |
|
67 default: false |
|
68 } |
65 }, |
69 }, |
66 components: { |
70 components: { |
67 'tag-list': TagList |
71 'tag-list': TagList |
68 }, |
72 }, |
69 data() { |
73 data() { |