manual |
100% |
-
- add
- |
+
+
+ add
+
+ |
@@ -56,6 +65,7 @@
},
data() {
return {
+ disabled: !this.$config.feature("edit"),
config: this.$config.values,
readonly: this.$config.getValue("readonly"),
selected: [],
@@ -72,13 +82,12 @@
nameRule: v => v.length <= 25 || this.$gettext("Name too long"),
};
},
- computed: {
- },
+ computed: {},
methods: {
refresh() {
},
removeLabel(label) {
- if(!label) {
+ if (!label) {
return
}
@@ -89,7 +98,7 @@
});
},
addLabel() {
- if(!this.newLabel) {
+ if (!this.newLabel) {
return
}
@@ -99,6 +108,10 @@
this.newLabel = "";
});
},
+ searchLabel(label) {
+ this.$router.push({name: 'photos', query: {q: 'label:' + label.LabelSlug}}).catch(err => {});
+ this.$emit('close');
+ },
},
};
|