Skip to content

Commit c90351b

Browse files
committed
make XML and JSON versions match
1 parent 3892778 commit c90351b

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/commands/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function action(event: Office.AddinCommands.Event) {
2222
};
2323

2424
// Show a notification message.
25-
Office.context.mailbox.item.notificationMessages.replaceAsync("action", message);
25+
Office.context.mailbox.item.notificationMessages.replaceAsync("ActionPerformanceNotification", message);
2626

2727
// Be sure to indicate when the add-in command function is complete.
2828
event.completed();

src/taskpane/outlook.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ export async function run() {
1717
/**
1818
* Insert your Outlook code here
1919
*/
20+
21+
const item = Office.context.mailbox.item;
22+
document.getElementById("item-subject").innerHTML = "<b>Subject:</b> <br/>" + item.subject;
2023
}

src/taskpane/taskpane.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2 class="ms-font-xl"> Discover what Office Add-ins can do for you today! </h2>
4848
<div role="button" id="run" class="ms-welcome__action ms-Button ms-Button--hero ms-font-xl">
4949
<span class="ms-Button-label">Run</span>
5050
</div>
51+
<p><label id="item-subject"></label></p>
5152
</main>
5253
</body>
5354

webpack.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = async (env, options) => {
2525
clean: true,
2626
},
2727
resolve: {
28-
extensions: [".ts", ".tsx", ".html", ".js"],
28+
extensions: [".ts", ".html", ".js"],
2929
},
3030
module: {
3131
rules: [
@@ -44,11 +44,6 @@ module.exports = async (env, options) => {
4444
exclude: /node_modules/,
4545
use: "ts-loader",
4646
},
47-
{
48-
test: /\.html$/,
49-
exclude: /node_modules/,
50-
use: "html-loader",
51-
},
5247
{
5348
test: /\.(png|jpg|jpeg|gif|ico)$/,
5449
type: "asset/resource",

0 commit comments

Comments
 (0)