XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • 10
    • False
    • None
    • False
    • Testable
    • ?
    • RHELBU-2152 - Ability to manage files within the web console
    • ?
    • ?

      With https://github.com/cockpit-project/cockpit-files/pull/509 we implement an editor to edit existing file but that doesn't allow users to create a new config file yet and edit it.

      My current UI proposal would be:

      Add a new button: "Create a new file", allow the user to enter a file name and the owner (similar) to the "Create directory" option.

      After that, we touch the file and open the editor modal.

      Alternative approach:

      We directly open an editor modal, allow the user to change the filename there, that has two downsides:

      • we need to show the owner/group option somewhere
      • we need to ensure that the user doesn't overwrite an existing file when picking a filename.

      The owner group candidates are based upon this existing code: https://github.com/cockpit-project/cockpit-files/blob/main/src/ownership.tsx#L9

              jvanderw@redhat.com Jelle van der Waa
              jvanderw@redhat.com Jelle van der Waa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: