fix: update projects/storage resources

This commit is contained in:
Torsten Dittmann
2022-11-23 17:28:50 +01:00
parent e554b5fc0b
commit 596c072d51
21 changed files with 70 additions and 28 deletions
@@ -35,7 +35,8 @@
projectId,
provider.name.toLowerCase(),
appId,
secret
secret,
enabled
);
addNotification({
type: 'success',
@@ -73,7 +73,13 @@
async function updateScopes() {
try {
await sdkForConsole.projects.updateKey($project.$id, $key.$id, $key.name, scopes);
await sdkForConsole.projects.updateKey(
$project.$id,
$key.$id,
$key.name,
scopes,
$key.expire
);
invalidate(Dependencies.KEY);
addNotification({
type: 'success',
@@ -48,7 +48,14 @@
const updateName = async () => {
try {
await sdkForConsole.projects.updatePlatform($project.$id, data.platform.$id, name);
await sdkForConsole.projects.updatePlatform(
$project.$id,
data.platform.$id,
name,
data.platform.key,
data.platform.store,
data.platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
type: 'success',
@@ -21,8 +21,8 @@
$project.$id,
$platform.$id,
$platform.name,
undefined,
undefined,
$platform.key,
$platform.store,
hostname
);
invalidate(Dependencies.PLATFORM);
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,7 +21,9 @@
$project.$id,
$platform.$id,
$platform.name,
key
key,
$platform.store,
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
addNotification({
@@ -21,8 +21,8 @@
$project.$id,
$platform.$id,
$platform.name,
undefined,
undefined,
$platform.key,
$platform.store,
hostname
);
invalidate(Dependencies.PLATFORM);
@@ -19,8 +19,8 @@
projectId,
$createPlatform.$id,
$createPlatform.name,
undefined,
undefined,
$createPlatform.key,
$createPlatform.store,
$createPlatform.hostname
);
@@ -29,8 +29,8 @@
projectId,
$createPlatform.$id,
$createPlatform.name,
undefined,
undefined,
$createPlatform.key,
$createPlatform.store,
$createPlatform.hostname
);
@@ -85,8 +85,8 @@
projectId,
$createPlatform.$id,
$createPlatform.name,
undefined,
undefined,
$createPlatform.key,
$createPlatform.store,
$createPlatform.hostname
);
@@ -8,6 +8,8 @@ function createPlatformStore() {
$id: null,
name: null,
hostname: null,
key: null,
store: null,
type: null
});
@@ -20,6 +22,8 @@ function createPlatformStore() {
$id: null,
name: null,
hostname: null,
key: null,
store: null,
type: null
});
}
@@ -21,8 +21,8 @@
projectId,
$createPlatform.$id,
$createPlatform.name,
undefined,
undefined,
$createPlatform.key,
$createPlatform.store,
$createPlatform.hostname
);
@@ -55,7 +55,9 @@
name,
$webhook.events,
$webhook.url,
$webhook.security
$webhook.security,
$webhook.httpUser,
$webhook.httpPass
);
invalidate(Dependencies.WEBHOOK);
addNotification({
@@ -78,7 +80,9 @@
$webhook.name,
$webhook.events,
url,
$webhook.security
$webhook.security,
$webhook.httpUser,
$webhook.httpPass
);
invalidate(Dependencies.WEBHOOK);
addNotification({
@@ -101,7 +105,9 @@
$webhook.name,
Array.from($eventSet),
$webhook.url,
$webhook.security
$webhook.security,
$webhook.httpUser,
$webhook.httpPass
);
invalidate(Dependencies.WEBHOOK);
areEventsDisabled = true;
@@ -25,7 +25,7 @@
import Delete from '../deleteBucket.svelte';
import { trackEvent } from '$lib/actions/analytics';
import { writable } from 'svelte/store';
import { Models } from '@aw-labs/appwrite-console';
import type { Models } from '@aw-labs/appwrite-console';
let showDelete = false;