Skip to content

Conversation

@julien-nc
Copy link
Member

Because it cannot hurt.

@julien-nc julien-nc added enhancement New feature or request 3. to review labels Nov 5, 2024
@julien-nc julien-nc requested a review from kyteinsky as a code owner November 5, 2024 12:26
</div>
<NcButton v-if="!connected"
<NcButton v-if="showOAuth && !connected"
:disabled="loading === true || (!showOAuth && !state.token)"
Copy link
Contributor

Choose a reason for hiding this comment

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

loading === true || !!state.token"

since false showOAuth would hide the element, and a populated token field should disable this btn

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup. Since there are 2 buttons now, the oauth one should be disabled if the token is defined. If that's what you mean, done.

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc force-pushed the enh/noid/allow-oauth-or-personal-token branch from 690bbae to 3795b59 Compare November 5, 2024 16:03
@julien-nc julien-nc requested a review from kyteinsky November 5, 2024 16:03
@julien-nc julien-nc merged commit 9516c67 into main Nov 5, 2024
45 checks passed
@julien-nc julien-nc deleted the enh/noid/allow-oauth-or-personal-token branch November 5, 2024 16:06
@julien-nc julien-nc mentioned this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants