-
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.
[WIP] (fix) security: OC.dialogs.confirm() change to NcDialog
TODO: * typing: check whether typing "tokenToBeWiped" is possible without as as IToken | null (otherwise it's not nullable). Object as PropType<IToken | null> did not work. * styles: confirm/cancel positioning From nextcloud-libraries/nextcloud-dialogs#1371 (comment)
- Loading branch information
1 parent
ff55aa3
commit fc768b1
Showing
6 changed files
with
64 additions
and
40 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 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 |
---|---|---|
@@ -1,18 +1 @@ | ||
/// <reference types="@nextcloud/typings" /> | ||
|
||
declare namespace Nextcloud29WithPolyfills { | ||
interface DialogsPolyfill { | ||
confirm( | ||
title: string, | ||
message: string, | ||
callback: () => void, | ||
modal: boolean): void; | ||
} | ||
|
||
interface OC extends Nextcloud.v29.OC { | ||
dialogs: Nextcloud.Common.Dialogs & DialogsPolyfill; | ||
} | ||
} | ||
|
||
// eslint-disable-next-line no-var | ||
declare var OC: Nextcloud29WithPolyfills |
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