Skip to content

Commit 8898f92

Browse files
committed
Message for move to / is misleading
Message on the HTML page suggested that data is deleted while it was moved as requested. Fixes #324
1 parent 7709c1e commit 8898f92

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

src/configServer.cpp

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,10 +1602,18 @@ static void handleDeleteFiles(HTTPRequest *req, HTTPResponse * res) {
16021602
}
16031603
bool moveToRoot = !getParameter(params, "move").isEmpty();
16041604

1605-
String html = replaceDefault(header, "Delete Files");
1606-
html += "<h3>Deleting files</h3>";
1607-
html += "<div>In: " + ObsUtils::encodeForXmlText(path);
1608-
html += "</div><br /><div>";
1605+
String html;
1606+
if (moveToRoot) {
1607+
html = replaceDefault(header, "Move to /");
1608+
html += "<h3>Moving files</h3>";
1609+
html += "<div>In: " + ObsUtils::encodeForXmlText(path);
1610+
html += "</div><br /><div>";
1611+
} else {
1612+
html = replaceDefault(header, "Delete Files");
1613+
html += "<h3>Deleting files</h3>";
1614+
html += "<div>In: " + ObsUtils::encodeForXmlText(path);
1615+
html += "</div><br /><div>";
1616+
}
16091617
sendHtml(res, html);
16101618
html.clear();
16111619

0 commit comments

Comments
 (0)