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): ...@@ -1764,7 +1764,10 @@ class DiskAddView(TemplateView):
) )
if form.is_valid(): if form.is_valid():
if form.cleaned_data.get("size"):
messages.success(self.request, _("Disk successfully added!")) messages.success(self.request, _("Disk successfully added!"))
else:
messages.success(self.request, _("Disk download started!"))
form.save() form.save()
else: else:
error = "<br /> ".join(["<strong>%s</strong>: %s" % 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