MCPcopy Create free account
hub / github.com/MALSync/MALSync / resumeMessageElement

Function resumeMessageElement

src/pages-sync/messageElements.ts:77–108  ·  view source on GitHub ↗
(buttonText: string)

Source from the content-addressed store, hash-verified

75}
76
77export function resumeMessageElement(buttonText: string) {
78 const resumeMessageDiv = document.createElement('div');
79 const resumeButton = document.createElement('button');
80 resumeButton.id = 'MALSyncResume';
81 resumeButton.className = 'sync';
82 resumeButton.style.cssText = `
83 display: block;
84 margin-bottom: 2px;
85 background-color: transparent;
86 border: none;
87 color: rgb(255,64,129);
88 cursor: pointer;
89 `;
90 resumeButton.innerText = buttonText;
91 resumeMessageDiv.appendChild(resumeButton);
92
93 const closeButton = document.createElement('button');
94 closeButton.className = 'resumeClose';
95 closeButton.style.cssText = `
96 display: block;
97 background-color: transparent;
98 border: none;
99 color: white;
100 margin-top: 10px;
101 cursor: pointer;
102 justify-self: center;
103 `;
104 closeButton.innerText = api.storage.lang('close');
105 resumeMessageDiv.appendChild(closeButton);
106
107 return resumeMessageDiv;
108}
109
110export function videoStrategyErrorElement(hasMissingPermissions: boolean) {
111 const errorDiv = document.createElement('div');

Callers 1

startSyncHandlingMethod · 0.90

Calls 1

langMethod · 0.80

Tested by

no test coverage detected