-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TAS-114] ✨ Add upload only mode #385
Conversation
williamchong
commented
Sep 7, 2023
components/IscnRegisterForm.vue
Outdated
<Button v-else :text="$t('IscnRegisterForm.button.upload')" preset="secondary" | ||
@click.native="onUploadOnly"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Button v-else :text="$t('IscnRegisterForm.button.upload')" preset="secondary" | |
@click.native="onUploadOnly"> | |
<Button | |
v-else | |
:text="$t('IscnRegisterForm.button.upload')" | |
preset="secondary" | |
@click.native="onUploadOnly" | |
> |
components/IscnRegisterForm.vue
Outdated
<a | ||
:class="[ | ||
'text-[8px]', | ||
'underline', | ||
'mt-[4px]', | ||
'mb-[-12px]', | ||
]" | ||
href="#" | ||
@click.prevent="showUploadOnly = true" | ||
> | ||
{{ $t('IscnRegisterForm.button.uploadOnly') }} | ||
</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this button should be moved to the left, as the main action should always remain on the right-most side
Also, this <a/>
could be replaced by <Button preset="outline" />
to ensure consistent styling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:class="[ | ||
'flex', | ||
'flex-col', | ||
'items-end', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'items-end', | |
'items-end', | |
'gap-[12px]', |
components/IscnRegisterForm.vue
Outdated
@@ -1020,6 +1068,33 @@ export default class IscnRegisterForm extends Vue { | |||
return undefined | |||
} | |||
|
|||
async onUploadOnly(): Promise<void> { | |||
logTrackerEvent(this, 'ISCNCreate', 'ClickSubmit', '', 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we distinguish this from the ClickSubmit
event in onSubmit()
?
* ✨ Add upload only mode * 🎨 Fix indentation and remove unused slot