-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only display activity if owner + owner warning dialog
- Loading branch information
Showing
7 changed files
with
82 additions
and
96 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
This file was deleted.
Oops, something went wrong.
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
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,17 @@ | ||
import { Dialog, showDialog } from '@jupyterlab/apputils'; | ||
import { ITranslator, nullTranslator } from '@jupyterlab/translation'; | ||
|
||
export async function showOwnerDialog(translator: ITranslator | null): Promise<Dialog.IResult<string>> { | ||
|
||
const trans = (translator ?? nullTranslator).load('collaboration'); | ||
|
||
return showDialog({ | ||
title: trans.__('Owner'), | ||
body: trans.__('You have been set as the session owner and have been granted extra privileges. Be aware that ' + | ||
'refreshing or closing the page may make you lose those privileges.'), | ||
buttons: [ | ||
Dialog.okButton({label: trans.__('OK')}) | ||
] | ||
}); | ||
|
||
} |
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