-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdc0e8a
commit ed68223
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<core-alert | ||
class="no-access" | ||
v-if="!rootStore.aioseo.user.unfilteredHtml" | ||
type="red" | ||
v-html="strings.unfilteredHtmlError" | ||
/> | ||
</template> | ||
<script> | ||
import { | ||
useRootStore | ||
} from '@/vue/stores' | ||
import CoreAlert from '@/vue/components/common/core/alert/Index' | ||
export default { | ||
setup () { | ||
return { | ||
rootStore : useRootStore() | ||
} | ||
}, | ||
components : { | ||
CoreAlert | ||
}, | ||
data () { | ||
return { | ||
strings : { | ||
unfilteredHtmlError : this.$t.sprintf( | ||
// Translators: 1 - Learn more link. | ||
this.$t.__('Your user account role does not have access to edit this field. %1$s', this.$td), | ||
this.$links.getDocLink(this.$constants.GLOBAL_STRINGS.learnMore, 'unfilteredHtml', true) | ||
) | ||
} | ||
} | ||
} | ||
} | ||
</script> |