Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/NotificationItem.qml
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Line(s) | 318 | model: { | |||
---|---|---|---|---|---|
336 | 336 | | |||
337 | return buttons; | 337 | return buttons; | ||
338 | } | 338 | } | ||
339 | 339 | | |||
340 | PlasmaComponents.ToolButton { | 340 | PlasmaComponents.ToolButton { | ||
341 | flat: false | 341 | flat: false | ||
342 | // why does it spit "cannot assign undefined to string" when a notification becomes expired? | 342 | // why does it spit "cannot assign undefined to string" when a notification becomes expired? | ||
343 | text: modelData.label || "" | 343 | text: modelData.label || "" | ||
344 | Layout.preferredWidth: minimumWidth | 344 | width: minimumWidth | ||
345 | 345 | | |||
346 | onClicked: { | 346 | onClicked: { | ||
347 | if (modelData.actionName === "inline-reply") { | 347 | if (modelData.actionName === "inline-reply") { | ||
348 | replyLoader.beginReply(); | 348 | replyLoader.beginReply(); | ||
349 | return; | 349 | return; | ||
350 | } | 350 | } | ||
351 | 351 | | |||
352 | notificationItem.actionInvoked(modelData.actionName); | 352 | notificationItem.actionInvoked(modelData.actionName); | ||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |