File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
src/routes/(console)/project-[region]-[project]
functions/function-[function]/settings
sites/site-[site]/settings Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 18
18
export let func: Models .Function ;
19
19
export let specs: Models .SpecificationList ;
20
20
let specification = func .specification ;
21
+ let originalSpecification = func .specification ;
22
+ $ : originalSpecification = func .specification ;
21
23
22
24
async function updateLogging() {
23
25
try {
47
49
specification || undefined
48
50
);
49
51
await invalidate (Dependencies .FUNCTION );
52
+
53
+ originalSpecification = specification ;
54
+
50
55
addNotification ({
51
56
type: ' success' ,
52
57
message: ' Resource limits have been updated'
96
101
</svelte:fragment >
97
102
98
103
<svelte:fragment slot =" actions" >
99
- <Button disabled ={func . specification === specification } submit >Update</Button >
104
+ <Button disabled ={originalSpecification === specification } submit >Update</Button >
100
105
</svelte:fragment >
101
106
</CardGrid >
102
107
</Form >
Original file line number Diff line number Diff line change 17
17
export let site: Models .Site ;
18
18
export let specs: Models .SpecificationList ;
19
19
let specification = site .specification ;
20
+ let originalSpecification = site .specification ;
21
+
22
+ $ : originalSpecification = site .specification ;
20
23
21
24
async function updateLogging() {
22
25
try {
42
45
site ?.providerRootDirectory || undefined ,
43
46
specification || undefined
44
47
);
45
- await invalidate (Dependencies .FUNCTION );
48
+ await invalidate (Dependencies .SITE );
49
+ originalSpecification = specification ;
50
+
46
51
addNotification ({
47
52
type: ' success' ,
48
53
message: ' Resource limits have been updated'
92
97
</svelte:fragment >
93
98
94
99
<svelte:fragment slot =" actions" >
95
- <Button disabled ={site . specification === specification } submit >Update</Button >
100
+ <Button disabled ={originalSpecification === specification } submit >Update</Button >
96
101
</svelte:fragment >
97
102
</CardGrid >
98
103
</Form >
You can’t perform that action at this time.
0 commit comments