-
Notifications
You must be signed in to change notification settings - Fork 901
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(md): show processed delivery config if md_debug is enabled * feat(md): menu option to copy the artifact version (debug mode) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
24130c1
commit 09c275d
Showing
6 changed files
with
64 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const debugFeatureFlag = { | ||
key: 'MD_debug', | ||
value: '1', | ||
}; | ||
|
||
export const getIsDebugMode = () => { | ||
return localStorage.getItem(debugFeatureFlag.key) === debugFeatureFlag.value; | ||
}; | ||
|
||
export const setDebugMode = (isDebug: boolean) => { | ||
if (isDebug) { | ||
localStorage.setItem(debugFeatureFlag.key, debugFeatureFlag.value); | ||
} else { | ||
localStorage.removeItem(debugFeatureFlag.key); | ||
} | ||
}; |
10 changes: 10 additions & 0 deletions
10
app/scripts/modules/core/src/utils/clipboard/copyTextToClipboard.ts
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,10 @@ | ||
export const copyTextToClipboard = (text: string) => { | ||
const input = document.createElement('textarea'); | ||
input.style.opacity = '0'; | ||
input.innerHTML = text; | ||
document.body.appendChild(input); | ||
input.select(); | ||
const result = document.execCommand('copy'); | ||
document.body.removeChild(input); | ||
return result; | ||
}; |