mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
validate that name prop is included in the list of svg icons
This commit is contained in:
parent
848e7d76da
commit
9a7222fad7
@ -5,13 +5,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import icons from '~/view/assets/icons'
|
||||
import icons, { iconNames } from '~/assets/_new/icons'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
name: {
|
||||
type: String,
|
||||
required: true,
|
||||
validator(value) {
|
||||
return iconNames.indexOf(value) !== -1
|
||||
},
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user