Commit 43a921d6 by Kálmán Viktor

dashboard: different success message for empty disk and downloading disk

parent 7877d090
......@@ -1764,7 +1764,10 @@ class DiskAddView(TemplateView):
)
if form.is_valid():
messages.success(self.request, _("Disk successfully added!"))
if form.cleaned_data.get("size"):
messages.success(self.request, _("Disk successfully added!"))
else:
messages.success(self.request, _("Disk download started!"))
form.save()
else:
error = "<br /> ".join(["<strong>%s</strong>: %s" %
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment