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

[dashboard] fix sharing #3756

Merged
merged 1 commit into from
Apr 6, 2021
Merged

Conversation

svenefftinge
Copy link
Member

No description provided.

@svenefftinge svenefftinge force-pushed the sefftinge/dashboard-share-workspace-3755 branch from 990272b to 2b1b7ba Compare April 6, 2021 10:01
@svenefftinge svenefftinge marked this pull request as ready for review April 6, 2021 10:02
const ws = this.workspaces.get(workspaceId)?.workspace;
if (ws) {
ws.shareable = !ws.shareable;
getGitpodService().server.controlAdmission(ws.id, ws.shareable ? "owner" : "everyone");
await getGitpodService().server.controlAdmission(ws.id, ws.shareable ? "everyone" : "owner");
Copy link
Member Author

Choose a reason for hiding this comment

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

the fix is the switch of the ternary operands.

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Looks good! ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅

@svenefftinge svenefftinge merged commit 2c877c5 into main Apr 6, 2021
@svenefftinge svenefftinge deleted the sefftinge/dashboard-share-workspace-3755 branch April 6, 2021 10:12
@gtsiolis gtsiolis added this to the March 2021 milestone Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants