Skip to content

Commit

Permalink
feat(aside): beta token
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 2, 2021
1 parent 62f1a61 commit 7803488
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/components/editor/aside/AsideText.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
<template>
<div
class="wb-aside-button cursor-pointer flex items-center"
:class="[props.shortcuts ? 'justify-between' : 'justify-start']"
:class="[props.enable ? 'justify-between' : 'justify-start']"
>
<section class="flex items-center justify-start">
<slot v-if="icon"></slot>
<p>{{ props.text }}</p>
</section>
<p class="mr-2 text-2xs lg:text-2xs xl:text-xs">{{ props.shortcuts }}</p>
<section
v-if="props.beta"
class="bg-gray-300 mr-2 dark:bg-gray-800 wb-text px-2 rounded-2xl"
>
BETA
</section>
</div>
</template>

Expand All @@ -17,6 +23,11 @@
required: false,
type: String,
},
enable: {
required: false,
type: Boolean,
default: true,
},
text: {
required: false,
type: String,
Expand All @@ -27,5 +38,10 @@
type: Boolean,
default: false,
},
beta: {
required: false,
type: Boolean,
default: false,
},
})
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
class="wb-aside-button"
:text="t('editor.aside.dropbox.load')"
:icon="true"
:beta="true"
@click.prevent="onClick"
>
<HeroIcon class="mr-2">
Expand Down
2 changes: 2 additions & 0 deletions src/components/editor/aside/integrations/AsideDropboxSave.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
class="wb-aside-button"
:text="t('editor.aside.dropbox.save')"
:icon="true"
:beta="true"
:enable="true"
@click.prevent="onClick"
>
<HeroIcon class="mr-2">
Expand Down

0 comments on commit 7803488

Please sign in to comment.