Skip to content

Commit

Permalink
Update upload button component icons
Browse files Browse the repository at this point in the history
Signed-off-by: DeshDeepakKant <[email protected]>
  • Loading branch information
DeshDeepakKant committed Jan 9, 2025
1 parent 691def0 commit e9329ee
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions frontend/src/components/Panel/UploadButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,36 @@
<v-btn
v-bind="props"
@click="select"
icon="mdi-upload"
:loading="loading"
:color="btnColor"
:variant="variant"
:width="width"
:class="btnClass"
/>
>
<svg-icon type="mdi" :path="path"></svg-icon>
</v-btn>
</template>
</v-tooltip>
<v-btn
v-else
v-bind="props"
@click="select"
prepend-icon="mdi-upload"
:loading="loading"
:color="btnColor"
:variant="variant"
:width="width"
:class="btnClass"
>
<svg-icon type="mdi" :path="path"></svg-icon>
{{ label }}
</v-btn>
</template>

<script setup lang="ts">
import { type PropType } from 'vue'
import { ref } from 'vue'
import SvgIcon from '@jamescoyle/vue-icon'
import { mdiFileDownload } from '@mdi/js'
const props = defineProps({
accept: { type: String, default: '.yaml,.yml,text/yaml,application/x-yaml' },
Expand All @@ -48,6 +51,8 @@ const props = defineProps({
btnClass: { type: String }
})
const path = mdiFileDownload
const input = ref<HTMLInputElement | null>(null)
const emit = defineEmits(['click'])
Expand Down

0 comments on commit e9329ee

Please sign in to comment.