-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11200 from Jarsen136/issue-11156
feat: Item Edit: Limit Name and Image Update
- Loading branch information
Showing
3 changed files
with
81 additions
and
15 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
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,48 @@ | ||
<template> | ||
<div class="flex flex-col w-full"> | ||
<slot /> | ||
<div | ||
v-if="show" | ||
class="flex items-center gap-2 bg-yellow-50 border border-yellow-200 rounded-md p-3 !mt-2" | ||
> | ||
<NeoIcon | ||
icon="warning" | ||
class="text-yellow-500" | ||
size="small" | ||
/> | ||
|
||
<div> | ||
<p class="text-sm text-yellow-700"> | ||
{{ $t('mint.notRecommendedModify') }} | ||
</p> | ||
<div | ||
v-if="!disabledUndo" | ||
class="w-full flex justify-end" | ||
> | ||
<NeoButton | ||
variant="text" | ||
class="flex items-center gap-1 text-sm !text-yellow-600 hover:!text-yellow-700 capitalize" | ||
@click="emit('undo')" | ||
> | ||
<NeoIcon | ||
icon="undo" | ||
size="small" | ||
/> | ||
{{ $t('general.undo') }} | ||
</NeoButton> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { NeoButton, NeoIcon } from '@kodadot1/brick' | ||
defineProps<{ | ||
show: boolean | ||
disabledUndo?: boolean | ||
}>() | ||
const emit = defineEmits(['undo']) | ||
</script> |
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