mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
Fix issue with dismiss changes in title
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script lang="ts" strictEvents>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
||||
import * as utils from "@app/lib/utils";
|
||||
|
||||
import IconSmall from "@app/components/IconSmall.svelte";
|
||||
@@ -25,7 +27,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
const oldTitle = title;
|
||||
const dispatch = createEventDispatcher<{ refresh: null }>();
|
||||
|
||||
let submitNewTitle = false;
|
||||
</script>
|
||||
|
||||
@@ -106,7 +109,7 @@
|
||||
title="dismiss changes"
|
||||
loading={submitNewTitle}
|
||||
on:click={() => {
|
||||
title = oldTitle;
|
||||
dispatch("refresh");
|
||||
mode = "readOnly";
|
||||
}}>
|
||||
<IconSmall name={"cross"} />
|
||||
|
||||
@@ -338,8 +338,6 @@
|
||||
},
|
||||
});
|
||||
}
|
||||
} finally {
|
||||
issue = issue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -444,7 +442,8 @@
|
||||
<CobHeader
|
||||
id={issue.id}
|
||||
title={issue.title}
|
||||
editTitle={session && partial(editTitle, session.id)}>
|
||||
editTitle={session && partial(editTitle, session.id)}
|
||||
on:refresh={refreshIssue}>
|
||||
<svelte:fragment slot="icon">
|
||||
<div
|
||||
class="state"
|
||||
|
||||
@@ -408,8 +408,6 @@
|
||||
},
|
||||
});
|
||||
}
|
||||
} finally {
|
||||
patch = patch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -652,7 +650,8 @@
|
||||
<CobHeader
|
||||
id={patch.id}
|
||||
title={patch.title}
|
||||
editTitle={session && partial(editTitle, session.id)}>
|
||||
editTitle={session && partial(editTitle, session.id)}
|
||||
on:refresh={refreshPatch}>
|
||||
<svelte:fragment slot="icon">
|
||||
<div
|
||||
class="state"
|
||||
|
||||
Reference in New Issue
Block a user