Remove danger hint from close session confirmation when it has a file (#2888)

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
Roberto Trevisan 2024-12-05 06:07:24 -03:00 committed by GitHub
parent 36bea7006a
commit 8fdbf77bc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -208,7 +208,8 @@ defmodule LivebookWeb.SessionHelpers do
title: "Close session", title: "Close session",
description: description, description: description,
confirm_text: "Close session", confirm_text: "Close session",
confirm_icon: "close-circle-line" confirm_icon: "close-circle-line",
danger: session.file == nil
) )
end end