Fix a missing this in New component
This commit is contained in:
parent
f60b59d789
commit
55751467f8
@ -137,7 +137,7 @@ export default {
|
|||||||
new URL(v); // eslint-disable-line no-new
|
new URL(v); // eslint-disable-line no-new
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return $t('new.url_must_be_valid');
|
return this.$t('new.url_must_be_valid');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@ -158,7 +158,7 @@ export default {
|
|||||||
instructions: null,
|
instructions: null,
|
||||||
requiredUrlRules: Array.concat(
|
requiredUrlRules: Array.concat(
|
||||||
[],
|
[],
|
||||||
[v => !!v || $t('new.url_is_required')],
|
[v => !!v || this.$t('new.url_is_required')],
|
||||||
urlRules,
|
urlRules,
|
||||||
),
|
),
|
||||||
urlRules,
|
urlRules,
|
||||||
|
Loading…
Reference in New Issue
Block a user