Skip to content

Commit

Permalink
4.4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudbroes committed Jun 29, 2023
1 parent cdc0e8a commit ed68223
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/vue/components/common/core/alert/UnfilteredHtml.vue
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>

0 comments on commit ed68223

Please sign in to comment.