Skip to content
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

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

williamchong
Copy link
Member

image image

@williamchong williamchong changed the title ✨ Add upload only mode [TAS-114] ✨ Add upload only mode Sep 7, 2023
@notion-workspace
Copy link

components/FileUploadedInfo.vue Outdated Show resolved Hide resolved
Comment on lines 170 to 171
<Button v-else :text="$t('IscnRegisterForm.button.upload')" preset="secondary"
@click.native="onUploadOnly">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<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"
>

Comment on lines 353 to 364
<a
:class="[
'text-[8px]',
'underline',
'mt-[4px]',
'mb-[-12px]',
]"
href="#"
@click.prevent="showUploadOnly = true"
>
{{ $t('IscnRegisterForm.button.uploadOnly') }}
</a>
Copy link
Member

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

Copy link
Member Author

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

Totally missed there are 2 parts of review..
image

Does this look ok?

:class="[
'flex',
'flex-col',
'items-end',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'items-end',
'items-end',
'gap-[12px]',

@@ -1020,6 +1068,33 @@ export default class IscnRegisterForm extends Vue {
return undefined
}

async onUploadOnly(): Promise<void> {
logTrackerEvent(this, 'ISCNCreate', 'ClickSubmit', '', 1);
Copy link
Member

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()?

components/FileUploadedInfo.vue Outdated Show resolved Hide resolved
components/FileUploadedInfo.vue Outdated Show resolved Hide resolved
components/FileUploadedInfo.vue Outdated Show resolved Hide resolved
@williamchong williamchong requested a review from nwingt September 8, 2023 08:16
@williamchong williamchong temporarily deployed to rinkeby September 8, 2023 19:24 — with GitHub Actions Inactive
@williamchong williamchong merged commit 8f257df into likecoin:main Sep 14, 2023
2 checks passed
williamchong added a commit that referenced this pull request Sep 15, 2023
* ✨ Add upload only mode

* 🎨 Fix indentation and remove unused slot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants