Fix a missing this in New component

This commit is contained in:
Lucas Verney 2018-03-10 11:44:08 +01:00
parent f60b59d789
commit 55751467f8

View File

@ -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,