From b8e906ef3d3017bcd992a6724114cd26e4cbf023 Mon Sep 17 00:00:00 2001 From: Willem D'Haeseleer Date: Sun, 8 Oct 2017 19:14:18 -0700 Subject: [PATCH] permission upgrade --- jira-plugin/manifest.json | 2 +- jira-plugin/options/config.js | 3 ++- jira-plugin/options/options.jsx | 8 +++++++- jira-plugin/options/options.scss | 3 +++ jira-plugin/src/background.js | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/jira-plugin/manifest.json b/jira-plugin/manifest.json index a75b380..fcf290d 100644 --- a/jira-plugin/manifest.json +++ b/jira-plugin/manifest.json @@ -1,7 +1,7 @@ { "name": "Jira HotLinker", "description": "Jira HotLinker, quick access to Jira metadata when hovering over ticket numbers!", - "version": "1.5.0", + "version": "1.5.1", "manifest_version": 2, "icons": { "128": "resources/jiralink128.png" diff --git a/jira-plugin/options/config.js b/jira-plugin/options/config.js index 6fb6465..4f17dd6 100644 --- a/jira-plugin/options/config.js +++ b/jira-plugin/options/config.js @@ -2,6 +2,7 @@ export default { domains: [ '*://github.com/*' ], - instanceUrl: '' + instanceUrl: '', + v15upgrade: false }; diff --git a/jira-plugin/options/options.jsx b/jira-plugin/options/options.jsx index 1db1d13..24833a6 100644 --- a/jira-plugin/options/options.jsx +++ b/jira-plugin/options/options.jsx @@ -47,7 +47,7 @@ async function saveOptions() { } if (granted) { - await storageSet({instanceUrl, domains}); + await storageSet({instanceUrl, domains, v15upgrade:true}); resetDeclarativeMapping(); status.innerHTML = '
Options saved.'; setTimeout(function () { @@ -67,6 +67,12 @@ async function main() { function ConfigPage(props) { return (
+ {(() => { + if (!props.v15upgrade) { + return (); + } + })()}