Make Popups Configurable (#129)
This makes the popups in the plugin (those for editing and creating comments, replies, the pipeline, etc) configurable. Users can change the default width, height, transparency, and border properties, and set overrides per popup.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- This module is responsible for the MR pipline
|
||||
-- This module is responsible for the MR pipeline
|
||||
-- This lets the user see the current status of the pipeline
|
||||
-- and retrigger the pipeline from within the editor
|
||||
local Popup = require("nui.popup")
|
||||
@@ -42,7 +42,8 @@ M.open = function()
|
||||
local width = string.len(pipeline.web_url) + 10
|
||||
local height = 6 + #pipeline_jobs + 3
|
||||
|
||||
local pipeline_popup = Popup(u.create_popup_state("Loading Pipeline...", width, height))
|
||||
local pipeline_popup =
|
||||
Popup(u.create_popup_state("Loading Pipeline...", state.settings.popup.pipeline, width, height))
|
||||
M.pipeline_popup = pipeline_popup
|
||||
pipeline_popup:mount()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user