Skip to content

Commit

Permalink
Use more meaningful file name for confirmation dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Oct 18, 2024
1 parent ec7b991 commit 53f8817
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async function tryConfirm(data, asyncContext) {
}

const { status, asyncContext: updatedAsyncContext } = await openDialog({
url: window.location.origin + "/dialog.html",
url: window.location.origin + "/confirm.html",
data,
asyncContext,
height: Math.min(60, charsToPercentage(50, screen.availHeight)),
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/web/dialog.html → src/web/confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script src="https://unpkg.com/@fluentui/web-components" type="module"></script>
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<link href="dialog.css" rel="stylesheet">
<link href="confirm.css" rel="stylesheet">
</head>
<body>
<div class="card-container">
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = async (env, options) => {
entry: {
polyfill: ["core-js/stable", "regenerator-runtime/runtime"],
app: ["./src/web/app.js"],
dialog: ["./src/web/dialog.js"],
confirm: ["./src/web/confirm.js"],
"count-down": ["./src/web/count-down.js"],
},
output: {
Expand Down Expand Up @@ -83,9 +83,9 @@ module.exports = async (env, options) => {
],
}),
new HtmlWebpackPlugin({
filename: "dialog.html",
template: "./src/web/dialog.html",
chunks: ["polyfill", "dialog"],
filename: "confirm.html",
template: "./src/web/confirm.html",
chunks: ["polyfill", "confirm"],
}),
new HtmlWebpackPlugin({
filename: "count-down.html",
Expand Down

0 comments on commit 53f8817

Please sign in to comment.