Skip to content

Commit

Permalink
package updates, version update, ready to ship
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomi Tavela authored and Tomi Tavela committed May 15, 2020
1 parent 0dd762a commit 355de4f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sp-editor",
"version": "6.0.4",
"version": "6.0.5",
"private": true,
"dependencies": {
"@ionic/react": "^5.1.1",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "SP Editor",
"homepage_url": "https://microsoftedge.microsoft.com/addons/detail/affnnhcbfmcbbdlcadgkdbfafigmjdkk",
"version": "6.0.4",
"version": "6.0.5",
"description": "Create and update SharePoint Online/SP2013/SP2016/SP2019 css/js files, inject files to web, manage web/list properties, list Webhook",
"icons": {
"16": "icons/icon16.png",
Expand Down
6 changes: 3 additions & 3 deletions src/pages/scriptlinks/chrome/addandinstallapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ export function addAndInstallApp(...args: any) {
})
})
} else {
catalog.getAppById(spScriptLinksAppId)().then((spApp: IAppInfo) => {
$pnp.sp.web.getAppCatalog().getAppById(spScriptLinksAppId)().then((spApp: IAppInfo) => {
if (spApp.InstalledVersion === '') {
catalog.getAppById(spScriptLinksAppId).install().then(() => postMessage('App Installed succesfully'))
$pnp.sp.web.getAppCatalog().getAppById(spScriptLinksAppId).install().then(() => postMessage('App Installed succesfully'))
} else if (spApp.InstalledVersion < spApp.AppCatalogVersion) {
spApp.upgrade().then(() => postMessage(`App upgraded succesfully to version ${spApp.InstalledVersion}`))
$pnp.sp.web.getAppCatalog().getAppById(spScriptLinksAppId).upgrade().then(() => postMessage(`App upgraded succesfully to version ${spApp.InstalledVersion}`))
} else {
postMessage('App already installed to this site')
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/scriptlinks/components/commands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const ScriptLinkCommands = () => {
farItems={[
{
key: 'app',
text: 'ScriptLinks App',
text: 'Modern ScriptLinks App',
cacheKey: 'myCacheKey',
iconProps: { iconName: 'AppIconDefault' },
subMenuProps: {
Expand Down

0 comments on commit 355de4f

Please sign in to comment.